<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Add productCameraFunc</title>
<script>
	$(document).ready(function(){
	    $("table tbody tr:even").addClass("tdbgcolor1"); 
	    $("table tbody tr:odd").addClass("tdbgcolor2"); 
	});
</script>
</head>
<body>
<script>
	function checkAndSubmit(){
		var form = document.getElementById("addProductCameraFuncForm");
		var id = document.getElementById("productCameraFuncId");
		if (id.value ==""){
			document.getElementById("productCameraFuncId").value = "-1";
		}else 
			form.action="updateProductCameraFunc.action";
		form.submit();
	}
</script>
<div align="center">拍照功能</div>
<form method="post" action="addProductCameraFunc.action" id="addProductCameraFuncForm">
<table width="80%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"  align="center">
	<tr>
		<td>摄像头:</td>
		<td><input type="text" name="header" id="header"  value="<s:property value='productCameraFunc.header'/>" /></td>
	</tr>
	<tr>
		<td>摄像头像素:</td>
		<td><input type="text" name="pixel" id="pixel" value="<s:property value='productCameraFunc.pixel'/>" /></td>
	</tr>
	<tr>
		<td>传感器类型:</td>
		<td><input type="text" name="sensorType" id="sensorType" value="<s:property value='productCameraFunc.sensorType'/>" /></td>
	</tr>
	<tr>
		<td>闪光灯:</td>
		<td><input type="text" name="flash" id="flash" value="<s:property value='productCameraFunc.flash'/>" /></td>
	</tr>
	<tr>
		<td>视频拍摄:</td>
		<td><input type="text" name="videa" id="videa" value="<s:property value='productCameraFunc.videa'/>" /></td>
	</tr>
	<tr>
		<td>照片质量:</td>
		<td><input type="text" name="photoQuality" id="photoQuality" value="<s:property value='productCameraFunc.photoQuality'/>" /></td>
	</tr>
	<tr>
		<td>拍摄特色:</td>
		<td><input type="text" name="special" id="special" value="<s:property value='productCameraFunc.special'/>" /></td>
	</tr>
	<tr>
		<td>照片特效:</td>
		<td><input type="text" name="photoEffects" id="photoEffects" value="<s:property value='productCameraFunc.photoEffects'/>" /></td>
	</tr>
	<tr>
		<td>拍摄模式:</td>
		<td><input type="text" name="captureMode" id="captureMode" value="<s:property value='productCameraFunc.captureMode'/>" /></td>
	</tr>
	<tr>
		<td>副摄像头:</td>
		<td><input type="text" name="secondHeader" id="secondHeader" value="<s:property value='productCameraFunc.secondHeader'/>" /></td>
	</tr>
 
	<tr>
		<td colspan="2">
			<input type="hidden" value="<s:property value='langId'/>" name="langId" id="langId"/>
			<input type="hidden" value="<s:property value='productId'/>" name="productId" id="productId"/>
			<input type="hidden" value="<s:property value='productCameraFunc.id'/>" name="productCameraFuncId" id="productCameraFuncId"/>
			<input type="button" value="Save"  onclick="checkAndSubmit()"/>&nbsp;
			<input	type="button" value="reset" />&nbsp;
			<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
		</td>
</table>
</form>
</body>
</html>
